package uutalk.netcloud.talk.base.widget;

import android.app.ProgressDialog;
import android.content.Context;

public class WaittingDialog
{
   public static ProgressDialog dialog ;
   public static void initWaittingDialog(Context context, String message)
   {
           if(dialog!=null)
           {
               dialog.dismiss();
               dialog = null;  
           }
       dialog = new ProgressDialog(context);
       dialog.setCancelable(false);
       dialog.setMessage(message);
       dialog.show();
       
   }
   public static void endWaittingDialog()
   {
           if(dialog!=null)
           {
               dialog.dismiss();
               dialog = null;  
           }

   }

}
